import re

# 下面的文本中 cat 和 hat 连接出现多次，要求处理后结果是：
# the little cat is in the hat, we like it.
text = 'the little cat cat is in the hat hat hat, we like it.'

def handle(txt):
    #TODO

def test_handle():
    assert 'the little cat is in the hat, we like it.' == handle(text)
